import request from '@/utils/request'
import { parseStrEmpty } from "@/utils/ruoyi";

// 查询服装装备列表
export function getClothingList(data,query) {
  return request({
    url: '/cloth/CLOTHING/list',
    method: 'post',
    params: query,
    data: data,
    isEncrypt: false
  })
}

// 查询服装装备详情
export function getClothingInfo(id) {
  return request({
    url: '/cloth/CLOTHING/info?id=' + id,
    method: 'get',
  })
}

// 新增服装装备
export function createClothing(data) {
  return request({
    url: '/cloth/CLOTHING/add',
    method: 'post',
    data: data,
    isEncrypt: false
  })
}

// 修改服装装备
export function editClothing(data) {
  return request({
    url: '/cloth/CLOTHING/edit',
    method: 'post',
    data: data,
    isEncrypt: false
  })
}

// 删除服装装备
export function deleteClothing(clothingId) {
  return request({
    url: '/cloth/CLOTHING/remove?id=' + clothingId,
    method: 'post',
    isEncrypt: false
  })
}
